package com.future.mayi.response;

import com.future.baselib.entity.BaseResponse;
import com.google.gson.reflect.TypeToken;
import com.future.mayi.app.App;
import com.future.mayi.model.KeepCateModel;

import org.json.JSONException;

import java.util.ArrayList;
import java.util.List;

public class KeepCateListResponse extends BaseResponse {

    private List<KeepCateModel> cateList;

    @Override
    public void parseInfo(String content) throws JSONException {
        cateList = App.getGson().fromJson(content, new TypeToken<List<KeepCateModel>>() {
        }.getType());
    }

    public List<KeepCateModel> getCateList() {
        if (cateList == null) cateList = new ArrayList<>();
        return cateList;
    }


}
